package com.atkxp.domain;

import java.util.List;

/**
 * @author user
 * @declaration
 * @create 2022/9/26-20:24
 */
public class Page<T> {
    public static final int PAGE_SIZE = 4;
    private int pageNum;
    private int pageTotalPage;
    private int pageSize = PAGE_SIZE;
    private int pageTotalCount;
    private List<T> item;

    private String url;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageTotalPage() {
        return pageTotalPage;
    }

    public void setPageTotalPage(int pageTotalPage) {
        this.pageTotalPage = pageTotalPage;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageTotalCount() {
        return pageTotalCount;
    }

    public void setPageTotalCount(int pageTotalCount) {
        this.pageTotalCount = pageTotalCount;
    }

    public List<T> getItem() {
        return item;
    }

    public void setItem(List<T> item) {
        this.item = item;
    }

    @Override
    public String toString() {
        return "Page{" +
                "pageNum=" + pageNum +
                ", pageTotalPage=" + pageTotalPage +
                ", pageSize=" + pageSize +
                ", pageTotalCount=" + pageTotalCount +
                ", item=" + item +
                ", url='" + url + '\'' +
                '}';
    }
}
